﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace RM.BLL
{
    
    public partial class RMUsers
    {
        private readonly DAL.RMUsers dal;
        public RMUsers()
        {
            dal = new DAL.RMUsers();
        }
        public bool Exists(int id)
        {
            return dal.Exists(id);
        }
        public bool Exists(string username)
        {
            return dal.Exists(username);
        }
        public bool Exists(string salary, object obj)
        {
            return dal.Exists(salary, obj);
        }
        public Model.RMUsers GetModel(int id)
        {
            return dal.GetModel(id);
        }
        public Model.RMUsers GetModel(string username)
        {
            return dal.GetModel(username);
        }
        public Model.RMUsers GetModel(string salary, object obj)
        {
            return dal.GetModel(salary, obj);
        }
        public Model.RMUsers GetLoginModel(string username, string salary)
        {
            return dal.GetLoginModel(username, salary);
        }
        /// <summary>
        /// 获得查询分页数据
        /// </summary>
        public DataSet GetList(int pageSize, int pageIndex, string strWhere, string filedOrder, out int recordCount)
        {
            return dal.GetList(pageSize, pageIndex, strWhere, filedOrder, out recordCount);
        }
    }
}
